package vip.liux.contracts.repositories.product;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.ListCrudRepository;
import org.springframework.data.repository.ListPagingAndSortingRepository;
import org.springframework.data.repository.NoRepositoryBean;
import vip.liux.contracts.models.product.Brand;

import java.util.Optional;


@NoRepositoryBean
public interface BrandRepository extends ListPagingAndSortingRepository<Brand, Long>, ListCrudRepository<Brand, Long> {
    Page<Brand> findAllByKeyword(Pageable page, String brandName);

    Optional<Brand> findByBrandNo(String brandNo);
}